#!/usr/bin/python

# MokoCard

import os, sys
from gui.mokoconvwindow import MokoConvWindow

class Runner():
   
    def __init__ (self, arguments):
        print(arguments)
        
        # this is default data
        database = "/usr/share/mokoconv/mokoconv.db"
        keyPadMode = "2"
        # c:\\tmp\\mokoconv.db
        
        # I have to manage better this conditions
        if len(arguments) > 1:
            database = arguments[1]
        if len(arguments) > 2:
            keyPadMode = arguments[2]        
        
        ##TODO check existence database
        
        mainWindow = MokoConvWindow(database, keyPadMode)
        mainWindow.main()
        
    